package com.hdaccp.foodsales.service;

import com.hdaccp.foodsales.entity.Danwei;
import com.hdaccp.foodsales.entity.Shangpin;
import com.hdaccp.foodsales.entity.Xiaoclass;

import java.util.List;

public interface ShangpinService1 {
    public List<Shangpin> queryPage(String sname, int offset, int limit);
    public int countA(String sname);
    public int deleteA(int sid);

    /**
     * 商品增加
     * @param shangpin
     * @return
     */
    public int addA(Shangpin shangpin);


    /**
     * 商品更改
     * @param shangpin
     * @return
     */
    public int updateA(Shangpin shangpin);

    /**
     * 获取商品编号
     * @param sid
     * @return
     */
    public Shangpin getsid1(int sid);

    /**
     * 查询小类型
     * @return
     */
    public List<Xiaoclass> select1();

    /**
     * 查询单位
     * @return
     */
    public List<Danwei> selectdw();
}
